home *** CD-ROM | disk | FTP | other *** search
/ ftp.cs.arizona.edu / ftp.cs.arizona.edu.tar / ftp.cs.arizona.edu / icon / newsgrp / group94a.txt / 000179_icon-group-sender _Mon Jun 20 08:33:57 1994.msg < prev    next >
Internet Message Format  |  1994-08-19  |  949b

  1. Received: by cheltenham.cs.arizona.edu; Mon, 20 Jun 1994 09:03:10 MST
  2. Date: Mon, 20 Jun 94 08:33:57 PDT
  3. From: eric@star-semi.com (Eric Armstrong)
  4. Message-Id: <9406201533.AA27908@star-semi.com>
  5. To: icon-group@cs.arizona.edu
  6. Subject: education, please
  7. Status: R
  8. Errors-To: icon-group-errors@cs.arizona.edu
  9.  
  10. This keeps tripping me up:
  11.  
  12. The following expression succeeds:
  13.     s ?:= { tab(many(" ")); tab(0) }   # "   xxx" => "xxx"
  14.  
  15. But this one fails:
  16.     s ?:= { tab(many(" ")) & tab(0) }  # "   xxx" => "   "
  17.  
  18.  
  19. Which is different than what I expect.  (In my head, the first tab succeeds,
  20. so then the second is evaluated, and that is the result of the expression.
  21. But that's not what happens.  What is wrong with my head?)
  22.  
  23. Question 2:
  24.    After reading about tab and move for the umpteenth time, I still don't
  25.    see the difference between them.  Is there one?
  26.  
  27. Appreciation in advance for your patience, tolerance and/or replies.
  28.